export const imageError = {
  inserted(el, optons) {
    el.src = el.src || optons.value
    console.log(el.src)
    el.addEventListener('error', function() {
      this.src = optons.value
      console.log(1)
    })
  },
  componentUpdated(el, options) {
    el.src = el.src || options.value
  }
}
